package fengStyle.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import fengStyle.api.UserService;
import fengStyle.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Reference
    private UserService userService;

    @GetMapping("/user/findAll")
    public User findUser(){
        return userService.findAll();
    }

}
